#include "../server.hpp"
using namespace wyl;


int main()
{   
    Socket cli;
    cli.CreateClient(8082,"127.0.0.1"); 
    int cnt = 5;
    while(1)
    {
        const char* msg = "hello，我是客户端"; 
        cli.Send((void*)msg,strlen(msg));

        char buff[1024] = {0};
        int ret =  cli.Recv(buff,sizeof(buff) - 1);
        printf("%s,%d\n",buff,ret);
        sleep(1);
    }
    while(1);

    return 0 ;
}
